'use strict';
const mongoose = require('../utils/db.js');
const Schema = mongoose.Schema;
let UserSchema = new Schema({
  username: {
    type: String
  },
  nickname: {
    type: String,
    default: ''
  },
  mobile: {
    type: String,
    default: ''
  },
  email: {
    type: String,
    default: ''
  },
  status: {
    type: String,
    default: ''
  },
  password: { type: String },
  avatar: {
    type: String,
    default: ''
  }
});
module.exports = mongoose.model('user', UserSchema);
